package com.workflow.workflowproject.service;

import com.mybatisflex.core.service.IService;
import com.workflow.workflowproject.entity.FlowInfo;
import com.workflow.workflowproject.tools.Result.Result;

public interface FlowInfoService extends IService<FlowInfo> {
    /**
     * 添加流程信息
     *
     * @param
     * @return
     */
    Result addFlowInfo(FlowInfo flowInfo) throws Exception;
    /**
     * 修改流程信息
     *
     * @param
     * @return
     */
    Result updateFlowInfo(Integer id,FlowInfo flowInfo) throws Exception;
    /**
     * 删除流程信息
     *
     * @param
     * @return
     */
    Result deleteFlowInfo(Integer id) throws Exception;
    /**
     * 查询流程信息
     *
     * @param
     * @return
     */
    Result getFlowInfoById(Integer id) throws Exception;
    /**
     * 查询所有流程信息
     *
     * @param
     * @return
     */
    Result getAllFlowInfo() throws Exception;
    /**
     * 分页查询流程条件
     *
     * @param
     * @return
     */
    Result getFlowInfoPage(Integer page,Integer pageSize) throws Exception;
}
